<template>
	<view>
		<ttBar leftIcon="icon-back" title="全部分类" ></ttBar>
		<view class="classBox">
			<class-list v-if="isFresh" :height="height"></class-list>
		</view>
	</view>
</template>

<script>
	import ttBar from "@/components/ttBar/ttBar.vue";
	import classList from "@/pagesA/components/classList/classList.vue";
	export default {
		components:{
			ttBar,classList
		},
		data() {
			return {
				isFresh:true,
				height:uni.getSystemInfoSync().screenHeight-uni.getSystemInfoSync().statusBarHeight-uni.upx2px(90)-1
			}
		},
		methods: {
			
		},
		// 下拉刷新
		onPullDownRefresh() {
			this.isFresh=false;
			setTimeout(() => {
				this.isFresh=true;
				uni.stopPullDownRefresh();
			}, 1500)
		}
	}
</script>

<style>
	.classBox{
		border-top: 1px solid #E9E9E9;
	}
</style>
